<?php
//yc@2009-10-24 20:07:59

class SearchController extends Controller
{
    public $models='Tag,Blog';

    public function index()
    {
        $this->render();
    }

    public function save()
    {
        global $PARAM;
        unset($PARAM['submit']);
        if (!empty($PARAM)){
            foreach ($PARAM as $name => $value)
                $this->Setting->update($name, htmlspecialchars($value));
        }
        $this->index();
    }
}
?>
